<gm:page title="NodeTree" authenticate="true">

<gm:list id="tree" data="${app}/nodes" template="nodesTemplate" />

<gm:list id="subtree" data="${tree}/nodes" template="nodesTemplate">
  <gm:handleEvent src="tree" />
  <gm:handleEvent execute="refreshTree()"/>
</gm:list>

<script>
  function refreshTree(){
    var d = google.mashups.getObjectById('subtree').getData();
  alert(d);
    
  }
</script>

<gm:template id="nodesTemplate">
  <p repeat="true">
    <gm:text ref="atom:title"/>
    <gm:editButtons/>
  </p>
  <gm:create label="create new node"/>
</gm:template>

</gm:page>

